<?php


namespace App\Model;


use Illuminate\Database\Eloquent\Model;

/**
 * App\Model\Vote
 *
 * @mixin \Eloquent
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\Vote newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\Vote newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\Vote query()
 * @property int $id
 * @property int $user_id
 * @property int $vote 1赞 -1踩
 * @property int $target_id 目标id
 * @property int $type 1文章2评论
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\Vote whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\Vote whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\Vote whereTargetId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\Vote whereType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\Vote whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\Vote whereUserId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\Vote whereVote($value)
 */
class Vote extends Model
{
    protected $table = 'vote';
    protected $fillable = ['type','user_id', 'target_id', 'vote'];
}